﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="BackLog.aspx.cs" Inherits="ITOMMS.Web.SystemManage.BackLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>待办事项</title>
    <link href="../css/AspNetPager.css" rel="stylesheet" type="text/css" />
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

    <!--用到日期控件才使用-->

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <div style="margin: 0 auto; height: 428px; text-align: left; border: 1px solid #DCDCDC;
            background: url(images/line_bg.PNG) repeat-x bottom;">
            <table class="tblDataArea" width="100%" style="text-align: left;">
                <tr class="tblQueryArea">
                    <td class="tblDataCaption" colspan="8">
                        <div style="width: 210px;" class="title">
                            <img src="../images/lv3.gif" style="margin-bottom: -3px;" />待办事项</div>
                        <asp:Button ID="btnNew" runat="server" CssClass="cssUICommandButton" OnClick="btnNew_Click"
                            Text="新建事项" />
                </tr>
                <tr>
                    <td class="tdQueryCaption">
                        员工姓名：</td>
                    <td class="tdQueryField">
                        <asp:DropDownList ID="ddlUserName" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'">
                        </asp:DropDownList></td>
                    <td class="tdQueryCaption">
                        待办时间：</td>
                    <td class="tdQueryField">
                       <asp:TextBox ID="txtDoDate_Bgn" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox>-
                             <asp:TextBox ID="txtDoDate_End" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"></asp:TextBox></td>
                    <td class="tdQueryField">
                        <asp:Button ID="btnQuery" runat="server" CssClass="cssUICommandButton" OnClick="btnQuery_Click"
                            Text="查询" /></td>
                </tr>
            </table>
            <table class="tblDataArea" width="100%" style="text-align: left;">
                <tr>
                    <td class="tdQueryCaption" colspan="7" style="height: 348px; vertical-align: top;">
                        <asp:GridView ID="dgdaoim_sus_plyedr" Width="100%" runat="server" PageSize="25" AllowSorting="True"
                            HorizontalAlign="Center" AllowPaging="False" AutoGenerateColumns="False" CssClass="cssDataGrid" OnRowCommand="dgdaoim_sus_plyedr_RowCommand" OnRowDataBound="dgdaoim_sus_plyedr_RowDataBound">
                            <FooterStyle CssClass="cssDataGridFooter"></FooterStyle>
                            <SelectedRowStyle CssClass="cssDataGridSelectedItem"></SelectedRowStyle>
                            <EditRowStyle CssClass="cssDataGridEditItem"></EditRowStyle>
                            <AlternatingRowStyle CssClass="cssDataGridAlternatingItem"></AlternatingRowStyle>
                            <RowStyle CssClass="cssDataGridItem"></RowStyle>
                            <HeaderStyle ForeColor="#CCFFFF" CssClass="cssDataGridHeader"></HeaderStyle>
                            <Columns>
                                <asp:BoundField DataField="SEQNO" HeaderText="序号" />
                                 <asp:TemplateField HeaderText="姓名">
                                    <ItemTemplate>
                                        <asp:Label ID="lblCreateBy" runat="server"><%# GetUserName(Eval("CreateBy").ToString())%></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="事项标题">
                                    <ItemTemplate>
                                        <asp:Label ID="lblTitle" runat="server"><%# Watson.Core.Tools.FormatValue.InterceptString(Eval("Title").ToString(), 15)%></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="事项内容">
                                    <ItemTemplate>
                                        <asp:Label ID="lblContent" runat="server"><%# Watson.Core.Tools.FormatValue.InterceptString(Eval("Content").ToString(), 25)%></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="DoDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="待办时间" />
                                <asp:TemplateField HeaderText="事项状态">
                                    <ItemTemplate>
                                        <asp:Label ID="lblState" runat="server"><%# GetStatus(Eval("State").ToString())%></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="../InsideManage/BacklogAdd.aspx?id={0}"
                                    HeaderText="编辑" Text="编辑" />
                                <asp:TemplateField HeaderText="删除">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="del" OnClientClick="javascript:return confirm('你确认要删除吗?');" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'>删除</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </td>
                </tr>
            </table>
            <div id="AspNetPager">
                <webdiyer:AspNetPager CssClass="paginator" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                    runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PrevPageText="前页"
                    OnPageChanged="AspNetPager1_PageChanged" PageSize="25">
                </webdiyer:AspNetPager>
            </div>
        </div>
    </form>
</body>
</html>
